package com.hkfrich.generator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hkfrich.generator.domain.GenTable;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GenTableMapper
 * @Desscription
 * @Author _HeiShuai
 * @Date 2022/8/27 10:23
 * @Version 1.0
 **/
public interface GenTableMapper extends BaseMapper<GenTable> {
    Page<GenTable> selectDbTableList(Page<GenTable> page, @Param("genTable") GenTable genTable);

    List<GenTable> selectDbTableListByNames(String[] tableNames);

    int insertGenTable(GenTable table);

    GenTable selectGenTableInfoByName(String tableName);

    GenTable selectGenTableById(Long id);

    /**
     * 查询所有表信息
     *
     * @return 表信息集合
     */
    public List<GenTable> selectGenTableAll();
}
